#ifndef __ERRWAVEFUNCTION_H__
#define __ERRWAVEFUNCTION_H__
#include "../types.h"
#include <sys/time.h>

//读取数据库中的一组故障波形数据
int readErrorGroupWave(uint8_t groupIndex, uint8_t *rsp);

//插入一条错误日志数据到数据库
int insertErrorLog_db(int errorId, time_t errTime, uint32_t groupIndex, const char* strGroupWaveData);

int deleteErrorLog_db();

int errorLogQty(int* errQty);

int readErrorLogInfo_db(uint8_t *rsp);

int readSpecErrorLog_db(int offset, uint8_t* rsp);

int readErrorLogHeadInfo(uint8_t* rsp);

int readErrorLogPACData(uint8_t* rsp);

#endif //__ERRWAVEFUNCTION_H__